import { GeetConfig, LoginFormData, GoogleLoginData, LoginResponseData } from '@/types'
import request from '@/utils/request'
import { AxiosPromise } from 'axios'

// 响应接口
export interface GetUserInfoRes {
    /*状态码，请参考状态码手册 */
    code: number;
  
    /*响应结果 */
    data: Record<string, unknown>;
  
    /*响应信息 */
    msg: string;
  }
  
  /** 
   * 查询个人信息（过时），请使用getUserInfoV2
   * @returns
   */
  export function getUserInfo(): AxiosPromise<GetUserInfoRes> {
    return request.get(`/users-info/getUserInfo`);
  }